﻿package com.alstudio.module.sns.weiboshare;

import java.util.ArrayList;

import com.alstudio.pojo.module.user.User;

import android.app.Activity;
import android.content.Intent;


public interface IWeiboShare {
	public static final int ACTION_AUTHORIZE = 1;
	public static final int ACTION_FOLLOW = 2;
	public static final int ACTION_SHARE = 3;
	
	
	void authorize(Activity activity, Callback callback);

	void share(Activity activity, String content, String imageFile,
			boolean isAddLoovee, Callback callback);

	void shareWithImageUrl(Activity activity, String content, String imageUrl,
			boolean isAddLoovee, Callback callback);

	void getFriends(Activity activity, Callback callback);
	
	void onActivityResult(int requestCode, int resultCode, Intent data);
	
	public interface Callback {
		void onSuccess(int action);

		void onFailed(int action);
		
		void onStartShare();
		
		void onGetFriends(ArrayList<User> list);
	}
}
